package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.dao.HomePageChartDao;
import com.crm.entity.HomePageChart;
import com.crm.service.HomePageChartService;

@Service
public class HomePageChartServiceImpl implements HomePageChartService{

	@Autowired
	private HomePageChartDao homePageChartDao;
	
	@Override
	public List<HomePageChart> findHomePageChart() {
		return homePageChartDao.findByFlag(true);
	}

	@Override
	public void addHomePageChart(HomePageChart homePageChart) {
		homePageChartDao.save(homePageChart);
	}

}
